package com.zhu.work;

import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;

public class YmsURLStreamHandlerFactory implements URLStreamHandlerFactory {
    @Override
    public URLStreamHandler createURLStreamHandler(String protocol) {
        if("yms".equals(protocol)){
            return new YmsURLStreamHandler();
        }else{
            return null;
        }
    }
}
